package db_manager

import (
	"context"

	"github.com/linchao/zkp_auth/models"
)

// DeviceManager 接口定义了设备管理所需的功能
type DeviceManager interface {
	// ListDevices 获取所有已注册设备
	ListDevices(ctx context.Context) ([]*models.Device, error)

	// GetDevice 根据ID获取设备
	GetDevice(ctx context.Context, deviceID string) (*models.Device, error)

	// CountDevices 获取设备总数
	CountDevices(ctx context.Context) (int, error)

	// DeleteDevice 删除设备
	DeleteDevice(ctx context.Context, deviceID string) error
}
